/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package spartpartsmanager;

import java.util.Hashtable;

/**
 *
 * @author Ngocvan
 */
public class SPartMono extends SPart {
    private int price;
    public SPartMono(String code, Hashtable dicco) throws Exception {
        super(code);
        this.price = price;
        this.tier = 1;
    }
    
    @Override
    public String toString(){
//        String str="";
//        for (int i = 0; i < tier; i++) {
//            str+="/t";
//        }
//        return str+ "|--[" + this.code + "]";
        return "[" + this.code + "]";
    }

    @Override
    public int getPrice() {
        return this.price;
    }
    
    
}
